package kr.hkit.powerjava.chther08;

import kr.hkit.powerjava.chther05.work.Programming1;

class Point {
	private int x, y;

	public Point(int x, int y) {
		this.x = x;
		this.y = y;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	@Override
	public String toString() {
		return "Point [x=" + x + ", y=" + y + "]";
	}
}
class Circle{
	public static final double PI =3.14;
	private int radius =0;
	private Point Center;


	public Circle(Point center, int radius) {
		this.radius = radius;
		Center = center;
	}


	public int getRadius() {
		return radius;
	}


	public void setRadius(int radius) {
		this.radius = radius;
	}


	public Point getCenter() {
		return Center;
	}


	public void setCenter(Point center) {
		Center = center;
	}


	@Override
	public String toString() {
		return "Circle [radius=" + radius + ", Center=" + Center + "]";
	}


	
}

public class TestCircle {
	public static void main(String[] args) {
		Point p = new Point(25,78);
		Circle c = new Circle(p, 10);
		
		Point p1 = c.getCenter();
		p1.setX(50);
		p1.setY(100);
		c.setRadius(50);
		
		System.out.println(p);
		System.out.println(c);
		
		System.out.println(Math.sqrt(100)); 
	}
}
